--
-- Database: `like`
--

-- --------------------------------------------------------

--
-- Structure for table `engine4_likes`
--

CREATE TABLE IF NOT EXISTS `engine4_likes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `like_club_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=4 ;


-- --------------------------------------------------------

--
-- Structure for table `engine4_like_clubs`
--

CREATE TABLE IF NOT EXISTS `engine4_like_clubs` (
  `club_id` int(11) NOT NULL AUTO_INCREMENT,
  `object` varchar(255) NOT NULL,
  `object_id` int(11) NOT NULL DEFAULT '0',
  `active` tinyint(1) NOT NULL DEFAULT '0',
  `creation_date` datetime NOT NULL,
  `user_id` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`club_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT AUTO_INCREMENT=3 ;


-- --------------------------------------------------------

--
-- Dumping data for table `engine4_core_settings`
--

INSERT INTO  `engine4_core_settings` (`name`, `value`) VALUES
('like.likes.count', '9'),
('like.profile.count', '9'),
('like.profile.enabled', '1');


-- --------------------------------------------------------

--
-- Dumping data for table `engine4_authorization_permissions`
--

INSERT INTO `engine4_authorization_permissions` (`level_id`, `type`, `name`, `value`, `params`) VALUES
(1, 'like', 'create', 1, NULL),
(2, 'like', 'create', 1, NULL),
(3, 'like', 'create', 1, NULL),
(4, 'like', 'create', 1, NULL);

-- --------------------------------------------------------

--
-- Dumping data for table `engine4_core_content`
--

DELETE FROM `engine4_core_content` WHERE `name`='user.profile-status';
INSERT INTO `engine4_core_content` (`page_id`, `type`, `name`, `parent_content_id`, `order`, `params`, `attribs`) VALUES
(5, 'widget', 'like.status', 511, 1, NULL, NULL),
(5, 'widget', 'like.profile-likes', 510, 8, '["[]"]', NULL),
(5, 'widget', 'like.box', 510, 9, '["[]"]', NULL),
(4, 'widget', 'like.suggest', 411, 15, '{"title":"Like Suggest","titleCount":false}', NULL);


-- --------------------------------------------------------

--
-- Dumping data for table `engine4_core_menuitems`
--

INSERT INTO  `engine4_core_menuitems` (`name`, `module`, `label`, `plugin`, `params`, `menu`, `submenu`, `enabled`, `custom`, `order`) VALUES
('core_admin_main_plugins_like', 'like', 'Like', '', '{"route":"admin_default","module":"like","controller":"settings"}', 'core_admin_main_plugins', '', 1, 0, 9999),
('like_admin_main_level', 'like', 'Level Settings', '', '{"route":"admin_default","module":"like","controller":"level"}', 'like_admin_main', '', 1, 0, 2),
('like_admin_main_settings', 'like', 'Settings', '', '{"route":"admin_default","module":"like","controller":"settings"}', 'like_admin_main', '', 1, 0, 3),
('like_admin_main_faq', 'like', 'FAQ', '', '{"route":"admin_default","module":"like","controller":"faq"}', 'like_admin_main', '', 1, 0, 4),
('like_profile_pages', 'like', 'Pages', 'Like_Plugin_Menus', '', 'like_profile', '', 1, 0, 1),
('like_profile_users', 'like', 'Profiles', 'Like_Plugin_Menus', '', 'like_profile', '', 1, 0, 2);

-- --------------------------------------------------------

--
-- Dumping data for table `engine4_core_modules`
--

INSERT IGNORE INTO `engine4_core_modules` (`name`, `title`, `description`, `version`, `enabled`, `type`) VALUES
('like', 'like', 'Like', '4.0.1', 1, 'extra');

-- --------------------------------------------------------

--
-- Dumping data for table `engine4_hecore_modules`
--

INSERT IGNORE INTO `engine4_hecore_modules` (`name`, `version`, `key`, `installed`) VALUES
('likes', '4.0.1', 'xxxxxxxxxxxxxxx', 1);

-- --------------------------------------------------------